package reflect;

import reflect.annotations.AutoRunClass;

/**
 * 反射机制访问注解
 */
public class ReflectDemo8 {
    public static void main(String[] args) throws Exception {
        Class cls = Class.forName("reflect.Test3");
        if(cls.isAnnotationPresent(AutoRunClass.class)){
            System.out.println("被注解了");
        }else {
            System.out.println("没有被注解");
        }
    }
}
